package com.letfox.finance.service.impl;


import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.finance.dao.AccountRlInoutDao;
import com.letfox.finance.model.FINAccountRlInout;
import com.letfox.finance.service.AccountRlInoutService;




@Service
public class AccountRlInoutServiceImpl implements AccountRlInoutService {
	@Autowired
	private AccountRlInoutDao accountRlInoutDao;
	
	@Override
	public int deleteById(Long id) {
		
		return accountRlInoutDao.deleteByPrimaryKey(id);
	}
	
	@Override
	public int save(FINAccountRlInout finAccountRlInout) {
		
		return accountRlInoutDao.insertSelective(finAccountRlInout);
	}

	@Override
	public FINAccountRlInout selectById(Long id) {
		
		return accountRlInoutDao.selectByPrimaryKey(id);
	}

	@Override
	public FINAccountRlInout selectBy_finAccountId(String finAccountId) {
		
		return accountRlInoutDao.selectBy_finAccountId(finAccountId);
	}

	@Override
	public int update(FINAccountRlInout finAccountRlInout) {
		
		return accountRlInoutDao.updateByPrimaryKeySelective(finAccountRlInout);
	}

}